Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instagram: include query parameters in thumbnail URL #31

Merged
merged 2 commits into from
Feb 22, 2021

Conversation

ArthurHoaro
Copy link
Owner

Retrieval now fails without them with an error stating: 'Bad URL timestamp'

Fixes #30

Retrieval now fails without them with an error stating: 'Bad URL timestamp'

Fixes #30
@ArthurHoaro ArthurHoaro self-assigned this Feb 22, 2021
@ArthurHoaro ArthurHoaro merged commit e77fbc8 into master Feb 22, 2021
@ArthurHoaro ArthurHoaro deleted the fix/instagram-regex branch February 22, 2021 10:36
@tolima
Copy link

tolima commented Feb 23, 2021

Don't work for me.
What I do to have a thumbnails with Instagram :

  • In rules.json I delete the Instagram part.
  • on Instagram I go to the page where the image is.
  • I find the url source of the image in the code source
  • I share this url source in shaarli and it works

@ArthurHoaro
Copy link
Owner Author

ArthurHoaro commented Feb 23, 2021 via email

@tolima
Copy link

tolima commented Feb 23, 2021

On Shaarli, after replace web-thumbnailer by the last one.
I try on :

It won't make a thumbnail. But doing what I explain in the previous message work.
May be it's not the better way to test.

@ArthurHoaro
Copy link
Owner Author

Sorry for the late reply. I just tried and it's working for me with the picture page. Note that I had to clear my thumbnails cache. However the profile one doesn't because Instagram redirects to the login page.

Let me update the dependency in Shaarli and try with a the real release.

@ArthurHoaro
Copy link
Owner Author

It actually doesn't work on my production environment because Instagram redirects me to the login page even for picture pages. I need to investigate further to see if it's related to my IP, or if there are some headers that could be injected to avoid that.

@iooner
Copy link

iooner commented Jun 14, 2022

Hi!
Maybe try ?

https://www.instagram.com/p/ --- ID --- /media/?size=l
https://www.instagram.com/p/CLobRofBfN2/media/?size=l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instagram retrieval failing
3 participants